package com.bishe.demo.modules.ticket.service.impl;

import com.bishe.demo.modules.ticket.dao.SeatingDao;
import com.bishe.demo.modules.ticket.entity.Seating;
import com.bishe.demo.modules.ticket.service.SeatingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Description SeatingServiceImpl
 * @Author YHQ
 * @Date 2021/4/1 10:55
 */
@Service
@Transactional
public class SeatingServiceImpl implements SeatingService {
    @Autowired
    private SeatingDao seatingDao;
    //通过座位名查座位的id
    @Override
    public Integer getSeatingIdBySeatingName(String seatingName) {
        return seatingDao.getSeatingIdBySeatingName(seatingName);
    }

    //查看所有的座位类型
    @Override
    public Seating getSeating() {
        return seatingDao.getSeating();
    }
}
